package design.singleton;

/**
 * <p>
 * 饿汉式单例实现：
 * 线程安全(类加载机制实现)
 * 占用内存
 * 实现容易
 * </P>
 *
 * @author dingwen
 * @date 2021.10.14 16:02
 */
@SuppressWarnings("all")
public class Singleton3 {
    private static final Singleton3 instance = new Singleton3();

    private Singleton3() {
    }

    public static Singleton3 getInstance() {
        return instance;
    }
}
